import random
list1=['t1','t2','t3','t4','t5','t6','t7','t8']
bangong=[[],[],[]]
k=0
for i in range(len(list1)):
    a=random.randint(0,len(bangong)-1)
    bangong[a].append(list1[i])
for i in range (len(bangong)):
    print(f'办公室{i+1}人数:{len(bangong[i])},分别是：')
    for j in  (bangong[i]):
        print(j,end='\t')
    print()
